package main;

import system.CentralSystem;
import system.Turnstile;
import cards.Card;
import cards.CardType;

public class Main {

	public static void main(String[] args) {
		CentralSystem system = new CentralSystem();
		CentralSystem.Response response = system.buyCard(CardType.COMMON_10, 25); 
		System.out.println("Rest money: "+response.restMoney);
		System.out.println(response.card);
		
		Card card = response.card;
		
		Turnstile turn1 = new Turnstile(system);
		System.out.println("Turn check: "+turn1.check(card));
		System.out.println("after check: "+card);
		}

}
